package cn.zwx.goods.svc.domain.enums;

import lombok.Getter;

/**
 * @author zhangwenxue
 */

@Getter
public enum GoodsCodeEnum {

    /**
     * 未查询到品牌信息
     */
    BRAND_INFO_NOT_EXIST_ERROR(50001,"未查询到品牌信息"),
    BRAND_INFO_EXIST_ERROR(50002,"品牌信息已经存在"),
    BRAND_NAME_EXIST_ERROR(50003,"品牌名称已经存在"),
    CATEGORY_INFO_NOT_EXIST_ERROR(50004,"类目信息不存在"),
    CATEGORY_INFO_EXIST_ERROR(50005,"类目信息已存在"),
    CATEGORY_NAME_EXIST_ERROR(50006,"类目名称已存在"),
    CATEGORY_EXIST_CHILD_ERROR(50007,"类目下面存在子节点不允许删除"),

    ATTR_INFO_NOT_EXIST_ERROR(50008,"未查询到属性信息"),
    ATTR_INFO_EXIST_ERROR(50008,"属性信息已存在"),
    ATTR_NAME_EXIST_ERROR(50009,"属性名称已存在"),

    INSERT_SPU_EXIST_ERROR(50010,"新增商品已经存在"),

    SPU_NOT_EXIST_ERROR(50011,"商品信息不存在"),



    ;
    private final int code;
    private final String msg;
    GoodsCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
